﻿<%@ Control Language="C#" EnableViewState="true" %>
<%@ Register Assembly="Antu.WebControls" Namespace="Antu.WebControls" TagPrefix="CBW" %>

<script type="text/javascript" language="javascript">
    var arrProjectInfo = new Array(); /*保存项目信息*/
        var url = document.URL;
        var strurl = url.substring(url.indexOf("?") + 1, url.length).split("&");
        var tt = strurl[0].substring(strurl[0].indexOf("=") + 1, strurl[0].length);
        /*返回选中的项目信息*/
        function GetSelectProjectInfo() {
            if (document.getElementById("project_person_id").value == '') {
                alert('请选择数据!');
                return;
            }
            arrProjectInfo.length = 0;
            var id = document.getElementById("project_person_id").value; /*项目编号*/
            var row = document.getElementById(id);               /*返回table的一行*/

            arrProjectInfo[0] = id;

            if (row != undefined) {
                if (row.cells[1].innerText != '') {
                    arrProjectInfo[1] = row.cells[1].innerText; /*产权人*/
                }
            }
            window.returnValue = arrProjectInfo;
            self.close();
        }
        function setValue(obj) {
            var element = document.getElementsByTagName("input");

            if (element.length > 0) {
                for (var i = 0; i < element.length; i++)
                    if (element[i].type == 'radio')
                    element[i].checked = false;
            }
            obj.checked = true;
            document.getElementById("project_person_id").value = obj.id;
        }

        function setNull() {
            arrProjectInfo.length = 0;
        }
        function request(paras) {
            var url = location.href;
            var paraString = url.substring(url.indexOf("?") + 1, url.length).split("&");
            var returnValue;
            for (i = 0; i < paraString.length; i++) {
                if (paraString[i] != "") {
                    if (paras.toString().toLowerCase() == paraString[i].substring(0, paraString[i].indexOf("=")).toLowerCase()) {
                        returnValue = paraString[i].substring(paraString[i].indexOf("=") + 1, paraString[i].length)
                    }
                }
            }
            if (typeof (returnValue) == "undefined") {
                return "";
            } else {
                return returnValue;
            }
        }
</script>

<center>
    <table border="0" cellpadding="0" cellspacing="0" width="100%" class="window_tab_list">
        <tr>
            <th height="30px">
                <strong>选择<asp:Label ID="lblHeader" runat="server"></asp:Label></strong><span style="font-size: 12px;
                    color: Red;">(请点击查询进行数据刷新)</span>
            </th>
        </tr>
        <tr>
            <td>
                区划：<asp:DropDownList ID="ddl区划" runat="server">
                </asp:DropDownList>
                项目名称:<asp:TextBox ID="txt_name" runat="server" Width="100"></asp:TextBox>
                征收决定号:<asp:TextBox ID="征收决定号" runat="server" Width="100"></asp:TextBox>
                房屋坐落:<asp:TextBox ID="房屋坐落" runat="server" Width="100"></asp:TextBox>
                <asp:TextBox ID="立项号" runat="server" Width="100" Visible="false"></asp:TextBox>
                被征收人:<asp:TextBox ID="被征收人" runat="server" Width="100"></asp:TextBox>
                <asp:Button ID="bt_query" runat="server" Text="查询" />
            </td>
        </tr>
        <tr>
            <td width="100%">
                <CBW:CustomGridView runat="server" ID="CustomGridView1" ShowCmpAndCancel="false"
                    CssClass="window_tab_list" ShowGridViewSelect="List" ShowHideColModel="None"
                    PageSize="10" AllowPaging="true" Width="100%" AutoGenerateColumns="false" CustomGridViewClass="window_tab_list_fst">
                    <Columns>
                        <asp:BoundField DataField="产权人" HeaderText="被征收人" />
                        <asp:BoundField DataField="丘权号" HeaderText="丘权号" />
                        <asp:BoundField DataField="房屋坐落" HeaderText="房屋坐落" />
                        <asp:BoundField DataField="征收许可证号" HeaderText="征收决定号" />
                        <asp:BoundField DataField="项目名称" HeaderText="项目名称" />
                        <asp:TemplateField HeaderText="详细">
                            <ItemTemplate>
                                <a href='../BCSSManage/ZSPG_ZSPersonInfo.aspx?ID=<%#Eval("PERSONID")%>' target="_blank">
                                    <asp:Label ID="Label1" runat="server" Text="查看"></asp:Label></a>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </CBW:CustomGridView>
            </td>
        </tr>
        <tr>
            <td align="center" height="30px">
                <asp:Button ID="bt_ok" runat="server" SkinID="LightGreen" Text="确定" OnClientClick="GetSelectProjectInfo();return false;" />
                <asp:Button ID="bt_cancel" runat="server" SkinID="LightGreen" Text="关闭" OnClientClick="javascript:self.close();return false;" />
            </td>
        </tr>
    </table>
</center>
<input type="hidden" value="" id="project_person_id" />